package com.woniuxy.company5.controller;

import com.woniuxy.company5.service.MacDeptService;
import com.woniuxy.company5.service.MacInterService;
import com.woniuxy.company5.util.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/macDept")
public class MacDeptController {
    @Resource
    private MacInterService macInterService;

    @Resource
    private MacDeptService macDeptService;

    @GetMapping("")
    public Result selAllMacDept(){
        return Result.ok().data("MacdeptList",macDeptService.selAllDept()).data("MacInterList",macInterService.selAllMacInter());
    }

}
